/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ins.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 检验报告书-数据表Entity
 * @author fanqinglong
 * @version 2017-11-21
 */
public class InsTable extends DataEntity<InsTable> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String fullName;		// 中文名称
	private InsCategory category;		// 分类
	private InsTemplate template;		// 对应的模板id
	private Integer sort = 10;		// 排序
	private List<InsField> insFieldList = Lists.newArrayList();		// 子表列表
	private List<InsTableUser> insTableUserList = Lists.newArrayList();   // 中间表列表
	private String tableId;
	private int version;
	private String receiveIds;    // 数据超出预警范围设置时，需要发送邮件用户的id,以“,”隔开
	private String createName;    // 因框架设置所有createBy都jsonIgnore,对于需要用json传创建人名字的就使用这个字段
	
	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}

	public InsTable() {
		super();
	}

	public InsTable(String id){
		super(id);
	}

	@Length(min=1, max=64, message="名称长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=64, message="中文名称长度必须介于 1 和 64 之间")
	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	
	public InsCategory getCategory() {
		return category;
	}

	public void setCategory(InsCategory category) {
		this.category = category;
	}
	
	public InsTemplate getTemplate() {
		return template;
	}

	public void setTemplate(InsTemplate template) {
		this.template = template;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public List<InsField> getInsFieldList() {
		return insFieldList;
	}

	public void setInsFieldList(List<InsField> insFieldList) {
		this.insFieldList = insFieldList;
	}

	public List<InsTableUser> getInsTableUserList() {
		return insTableUserList;
	}

	public void setInsTableUserList(List<InsTableUser> insTableUserList) {
		this.insTableUserList = insTableUserList;
	}

	public String getReceiveIds() {
		return receiveIds;
	}

	public void setReceiveIds(String receiveIds) {
		this.receiveIds = receiveIds;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

}